package biz.inspeed.test.gson;

import static org.junit.Assert.*;

import org.junit.Test;

import com.google.gson.Gson;

public class JsonTest22 {

	@Test
	public void test() {
		fail("Not yet implemented");
	}

	
	@Test
	public void testa(){
		Object2 o2 = new Object2();
		Gson gson = new Gson();
		String json = gson.toJson(o2);
		System.out.println(json);
		Object2 fromJson = gson.fromJson(json, Object2.class);
		System.out.println(fromJson);
	}
}

class Object1{
	String id = "Object1";
}

class Object2{
	Object1 pro = new Object1();
	String id = "Object2";
}